﻿package bakudo.engines.mapEngine.view.scene.actors 
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.utils.getDefinitionByName;
	
	/**
	 * ...
	 * @author Bakudo
	 */
	public class BackgroundTileActor extends SceneActor
	{
		public var tileBitmap : Bitmap = new Bitmap();
		
		public function BackgroundTileActor() 
		{
			super();
			createBitmap();
		}
		
		override public function get removeable():Boolean { 
			return false; 
		}
		
		private function createBitmap():void {
			var TileClass : Class = getDefinitionByName('sidewalk') as Class;
			var bd : BitmapData = new TileClass(0, 0);
			tileBitmap.bitmapData = bd;
			//tileBitmap.width = tileBitmap.height = 50;
			//tileBitmap.scaleX = tileBitmap.scaleY = .5;
			addChild(tileBitmap);
			
		}
		
	}
	
}